package com.example.ranrabbitmq.pojo;

import lombok.Data;
/***
 * NAME:Ran
 * TIME:2024/12/20
 * 封装配置类
 */
@Data
public class Rabbitmq {

    private final static String EXCHANGE = "RanExchange";//交换机名称
    private final static String QUEUE = "RanQueue";//队列名称
    private final static String KEY = "myRoutingKey";//秘钥


    //   给到外部调用方法
    public static String getExchange() {
        return EXCHANGE;
    }

    public static String getQueue() {
        return QUEUE;
    }

    public static String getKey() {
        return KEY;
    }
}

